package cn.wei.common.result;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: wei
 * @Date: 2021/09/23/14:51
 */
@Getter
@AllArgsConstructor
@ToString
public enum ResponseEnum {
    SUCCESS(0,"成功"),
    ERROR(-1,"服务器内部错误"),
    //-1xx 服务器错误
    BAD_SQL_GRAMMAR_ERROR(-101, "sql语法错误"),
    SERVLET_ERROR(-102, "servlet请求异常"), //-2xx 参数校验
    UPLOAD_ERROR(-103, "文件上传错误"),
    EXPORT_DATA_ERROR(104, "数据导出失败"),


    //-2xx 参数校验
    BORROW_AMOUNT_NULL_ERROR(-201, "借款额度不能为空"),
    MOBILE_NULL_ERROR(-202, "手机号码不能为空"),
    MOBILE_ERROR(-203, "手机号码不正确"),
    PASSWORD_NULL_ERROR(204, "密码不能为空"),
    CODE_NULL_ERROR(205, "验证码不能为空"),
    CODE_ERROR(206, "验证码错误"),
    MOBILE_EXIST_ERROR(207, "手机号已被注册"),
    LOGIN_USER_ERROR(208, "用户不存在"),
    LOGIN_PASSWORD_ERROR(209, "密码错误"),
    LOGIN_LOKED_ERROR(210, "用户被锁定"),
    LOGIN_AUTH_ERROR(-211, "未登录"),
    ACCOUNT_NULL_ERROR(-212, "账号不能为空"),
    ACCOUNT_ERROR(-213, "账号不正确"),
    ACCOUNT_EXIST_ERROR(214, "账号已存在"),
    No_Data(215,"暂无订单"),
    CHECK_CODE_ERROR(216,"验收码错误"),
    IS_CHECK_CODE_ERROR(217,"该订单已验收"),
    ID_CARD_NULL_ERROR(218,"身份证号不能为空"),
    ID_CARD_FRONT_NULL_ERROR(219,"身份证正面不能为空"),
    ID_CARD_BACK_NULL_ERROR(220,"身份证反面不能为空"),
    USER_NAME_NULL_ERROR(221,"姓名不能为空"),
    ZFB_ACCOUNT_NULL_ERROR(222,"支付宝账号不能为空"),
    ZFB_WRONG_ERROR(223,"支付宝账号有误"),
    AMOUNT_EXCESS_BALANCE(224,"提现金额大于可用余额"),
    AMOUNT_ERROR(225,"提现金额有误"),
    OUT_TRADE_NO_ERROR(226,"提现申请编号不能为空"),
    CurrentNum_not_enough(227,"库存不足"),


    USER_BIND_IDCARD_EXIST_ERROR(-301, "身份证号码已绑定"),
    USER_NO_BIND_ERROR(302, "用户未绑定"),
    USER_NO_AMOUNT_ERROR(303, "用户信息未审核"),
    USER_AMOUNT_LESS_ERROR(304, "您的借款额度不足"),
    LEND_INVEST_ERROR(305, "当前状态无法投标"),
    LEND_FULL_SCALE_ERROR(306, "已满标，无法投标"),
    NOT_SUFFICIENT_FUNDS_ERROR(307, "余额不足，请充值"),
    ACCESS_DENIED(308,"拒绝访问"),
    GRAB_AFTER(309,"哎呀手速慢了,订单消失了"),

    PAY_UNIFIEDORDER_ERROR(401, "统一下单错误"),

    ALIYUN_SMS_LIMIT_CONTROL_ERROR(-502, "短信发送过于频繁"),//业务限流
    ALIYUN_SMS_ERROR(-503, "短信发送失败"),//其他失败
    TENGXUN_SMS_LIMIT_CONTROL_ERROR(-502, "短信发送过于频繁"),//业务限流
    TENGXUN_SMS_ERROR(-503, "短信发送失败"),//其他失败


    WEIXIN_CALLBACK_PARAM_ERROR(-601, "回调参数不正确"),
    WEIXIN_FETCH_ACCESSTOKEN_ERROR(-602, "获取access_token失败"),
    WEIXIN_FETCH_USERINFO_ERROR(-603, "获取用户信息失败");

    private Integer code;//状态码
    private String message;//消息

}
